Accusoft.ImagXpress13.Net
Cleanup Images

ImagXpress® provides methods and properties to support cleanup of photo and document images, using the Processor methods and properties: 

Binarize

To facilitate cleanup or image recognition, it may be useful to convert an image to a 1-bit or 8-bit grayscale image. The Binarize method operates on 1-bit and 24-bit input DIB's, permanently modifying it to a 1-bit or 8-bit grayscale DIB of the same dimensions. The Autobinarize method operates on 1-bit and 24-bit input images, automatically selecting the optimal binarize parameters to convert to a 1-bit monochrome image.

Deskew 

To adjust the rotation of the page to remove skew, use one of the following:

Shear

To adjust the rotation of the body of the image in a document, use the DocumentShear method to correct rotation within the body of the image text. (For example, if an image, like a page of a book, was not flat when scanned, the resulting digital image text may be skewed. The Deskew method will correct rotation of the entire page, but will not address skew within the text body of the image. In this instance DocumentShear may be a more useful method.)

Remove Specks or Blobs

To eliminate small specks or larger black objects, use one of the following:

Remove Lines or Scratches 

To eliminate lines or scratches from the image, use one of the following:

Identify Blank Pages 

To identify blank pages in a document, call the DocumentBlankPageDetect method. The BlankPageDetected and Confidence properties are set with the results of the DocumentBlankPageDetect method.

Clarify Letters and Lines 

ImagXpress offers a number of methods, aimed at clarifying and smoothing letters and lines:

Dilate:  To enhance/fill in divots in black letters and lines, use Dilate. If the image is black and white, you can use the DocumentDilate method, which has been enhanced for black and white images.

Erode:  To reduce/erase protrusions from black letters and lines, use Erode. If the image is black and white, you can use the DocumentErode method, which has been enhanced for black and white images.

Smooth:  If the image is black and white, you can use the DocumentZoomSmooth method. This method smooths letters and lines, by first doubling their width and height, then dilating and eroding as required.

Remove Edges or Borders 

To remove borders of an image, use one of the following methods:

See Also

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback